<ion-view view-title="chats">
  <ion-header-bar class="bar-positive">
        <h1 class="title">设备</h1>
    </ion-header-bar>
    <ion-content content-handler>
    <ion-refresher pulling-text="刷新..." spinner="crescent" pulling-icon="" on-refresh="getEquipments();"></ion-refresher>
    <ion-list>
      <ion-item class="item-remove-animate item-avatar item-icon-right" ng-repeat="chat in chats" type="item-text-wrap" href="#/demo2_detail/{{chat.id}}">
        <img ng-src="{{chat.face}}">
        <h2>{{chat.name}}</h2>
        <p>{{chat.lastText}}</p>
        <i class="icon ion-chevron-right icon-accessory"></i>

        <ion-option-button class="button-assertive" ng-click="remove(chat)">
          Delete
        </ion-option-button>
      </ion-item>
    </ion-list>
  </ion-content>
</ion-view>
